package com.llc.controller;
import com.llc.pojo.UserPoJo;
import com.llc.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginController {

    @Autowired
    private AccountService accountService;

    @RequestMapping("/")
    public String index(Model model) {
       UserPoJo userPoJo=accountService.getAccountId();
        model.addAttribute("accountId",userPoJo.getAccountId());
        return "login";
    }


}
